package com.atguigu.gmall.gateway.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author lhh
 * @ClassName AuthUrlProperties
 * @date 2022 2022/12/15
 */
@Data
@Component
@ConfigurationProperties(prefix = "app.auth")
public class AuthUrlProperties {

    /**
     * 直接放行的请求
     */
    private List<String> anyoneUrl;

    /**
     * 拒绝访问的请求
     */
    private List<String> denyUrl;

    /**
     * 有限权限验证
     */
    private List<String> authUrl;

    private String loginPage;
}
